<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>JSONP</title>
</head>
<body>
    <ul id="content">
123123
    </ul>
    <script>
        function show1(data){
            console.log(data);
        }
        //1.创建一个script元素
        var script = document.createElement('script');
        script.src = 'http://localhost:8080/books?callback=show1&name=yuonly';
        document.body.appendChild(script);
        //2.
    </script>
</body>
</html>